package com.lxh.builder;

import java.util.ArrayList;

/**
 * 实体抽象类
 */
public class CarModel {

    //这个参数是各个基本方法执行的顺序
    private ArrayList<String> sequence = new ArrayList<String>();

    public void setSequence(ArrayList<String> sequence) {
        this.sequence = sequence;
    }

    //那模型应该会跑吧，别管是人推的，还是电力驱动，总之要会跑
    public void run() {
        String result = "";
        for (String value : sequence) {
            result += value;
        }
        System.out.println("您购买的汽车是这样的：" + result);
    }
}
